package com.wyl.studyredis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.wyl.studyredis.**.mapper")
//@ImportResource(locations= {"classpath:spring-cache.xml"})
public class StudyRedisApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(StudyRedisApplication.class, args);

//        ISchoolService schoolService = applicationContext.getBean("schoolService", ISchoolService.class);
//        StudentServiceImpl studentService = applicationContext.getBean("studentService", StudentServiceImpl.class);
//        studentService.setSchoolService(schoolService);
    }

}
